package com.example.blog_system_ssm.common;

import cn.hutool.core.util.RandomUtil;

public class Constant {
    public static final String SESSION_USERINFO_KEY="session_userinfo_key";
    public static final String SESSION_USERIP_KEY="session_userip_key";
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final String LOGIN_KAPTCHA_KEY = "login:kaptcha:";

    public static final String CACHE_ARTICLE_KEY = "cache:article:";
    public static final Integer CACHE_NULL_TTL = 3;
    public static final String LOCK_ARTICLE_KEY = "lock:article:";
    public static final Integer CACHE_ARTICLE_TTL = 30;

    public static final String RCOUNT_ARTICLE_ID="rcount:article:id:";
    public static final String CACHE_USERINFO_KEY="cache:userinfo:";
    public static final Integer CACHE_USERINFO_TTL = 30;
    public static final String LOGIN_USER_ERROR="login:user:error:";
    public static final Integer LOGIN_USER_FREEZE = 60;
    //万能验证码，便于自动化测试
    public static final String UNIVERSAL_KAPTCHA_CODE="c8fd27d19b2aa9fa24affd2a4726778c";
}
